<%-- 
    Document   : promoteUsers
    Created on : 23.4.2009, 23:28:44
    Author     : Ediczech
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <%@include file="../view/header.jsp" %>

        <%-- Content --%>

<h2><h:outputText value="#{msg.promoteUsers_title}"/></h2>

    <a4j:form id="promoteUser" prependId="">
        <h:panelGrid>
            <h:outputText value="#{msg.promoteUsers_message}"/>
            <rich:pickList id="Users" value="#{PromoteUsersBean.developerIds}" showButtonsLabel="false"
                           listsHeight="300" sourceListWidth="200" targetListWidth="200">
                <f:selectItems  value="#{PromoteUsersBean.users}"/>
            </rich:pickList>
            <h:message for="Users" errorClass="message_error"/>

            <h:messages errorClass="message_error" globalOnly="true"/>
            <h:commandButton action="#{PromoteUsersBean.promote}" value="#{msg.promoteUsers_button}"/>
        </h:panelGrid>
    </a4j:form>

        <%-- Content --%>

    <%@include file="../view/footer.jsp" %>
</f:view>